<?php


namespace app\partneradmin\validate;

use think\Validate;

class AppBase extends Validate
{
    //字段规则
    protected $rule = [
        'title' => 'require',
        'sys_url' => 'require',
    ];

    //验证器提示信息
    protected $message = [
        'title.require' => '请输入标题',
        'sys_url.require' => '请输入下载地址',
    ];

    //使用场景
    protected $scene = [
//        'add'  =>  ['title','sys_url'],
        'edit'   => ['title','sys_url']
    ];
}